<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图书管理系统</title>
    <link rel="stylesheet" type="text/css" href="/www/css/style.css">
    <script src="/www/js/jquery-1.12.4.js"></script>
    <script src="/www/js/art-template-web.js"></script>
    <script src="/www/js/dialog.js"></script>
    <!-- <script src="/www/js/index.js"></script> -->
    <script src="/www/js/test.js"></script> 

    <script src="" type="text/html" id="indexTpl">
      {{each list}}
        <tr>
            <td title = '{{$value.author}}'>{{$value.id}}</td>
            <td title = '{{$value.name}}'>{{$value.name}}</td>
            <td title = '{{$value.author}}'>{{$value.author}}</td>
            <td title = '{{$value.category}}'>{{$value.category}}</td>
            <td title = '{{$value.description}}'>{{$value.description}}</td>
            <td><a id="editBook" href="javascript:;">修改</a>|<a href="javascript:;">删除</a></td>
        </tr>
                {{/each}}
    </script>
</head>
<body>
    <div class="title">图书管理系统<a id="addBookId" href="javascript:;">添加图书</a></div>
    <div class="content">
        <table cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>名称</th>
                    <th>作者</th>
                    <th>分类</th>
                    <th>描述</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="dataList">
                
            </tbody>
        </table>
    </div>
    <form id="addBookForm" class="form">
       
            <input type="hidden" name="id">
          
      <label for="name">
        名称: <input type="text" name="name" id="name">
      </label><br>
      <label for="author">
        作者: <input type="text" name="author" id="author">
      </label><br>
      <label for="category">
        分类: <input type="text" name="category" id="category">
      </label><br>
      <label for="description">
        描述: <input type="text" name="description" id="description">
      </label><br>
      <input type="button" value="添加" id="addBook">
    </form>
</body>
</html>